# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-cloudpickle
pkgver=1.6.0
pkgrel=2
pkgdesc="Extended pickling support for Python objects"
url="https://pypi.org/project/cloudpickle/"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-psutil py3-tornado py3-typing-extensions py3-numpy"
source="https://files.pythonhosted.org/packages/source/c/cloudpickle/cloudpickle-$pkgver.tar.gz
	remove-skipped-test-that-causes-error.patch
	"
builddir=$srcdir/cloudpickle-$pkgver

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$builddir/tests/cloudpickle_testpkg" python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="3b663a013d1512b732b13f38bdf2d5d89704a73577c9fee2a6e808882d42ecc1bdb3589b1cc61279ec621b6dac27d8e223b2fd839442e2d5994892f04d015535  cloudpickle-1.6.0.tar.gz
b83f0db4f6fb55e77e5c20d10820f735a96ebb69a2d44d4f69c870a0713feeca1e603e60bcdfab0523d48873cc810e6ef4b569566158814f37bb91768689d816  remove-skipped-test-that-causes-error.patch"
